<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<jsp:useBean id="utilities" class="masterpiece.util.Utilities" scope="session" />    
<%@ page import="java.sql.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Add New Article</title>
<link rel="stylesheet" type="text/css" href="css/default.css" />
</head>
<body>
<%@ include file="top_menu.jsp" %>
<form action="addarticle2.jsp" method="post">
    <h1>Submit New Article</h1>
    <dl>
      <dt>ePass:</dt>
      <dd><input type="text" name="ePass" /></dd>
      <dt>Headline:</dt>
      <dd><input type="text" name="headline"/></dd>
      <dt>Sub-Headline:</dt>
      <dd><input type="text" name="subheadline" /></dd>
      <dt>Section:</dt>
      <dd><select name = "section">
      		<option value="1">News</option>
      		<option value="2">Op-Ed</option>
      		<option value="3">LuteLife</option>
      		<option value="4">International</option>
      		<option value="5">Arts Entertainment</option>
      		<option value="6">Sports</option>
      </select> </dd>
      <dt>Body:</dt>
      <dd><textarea name ="body"></textarea></dd>
      <dt>Issue:</dt>
      <dd><select name = "issue">
      <%ResultSet rset = utilities.returnIssueDates();
      while (rset.next()){%>
      <option value="<%=rset.getDate(1)%>"><%=rset.getDate(1)%></option>
      <%}%>
      </select></dd>
    </dl>
    <p class="buttons">
    <input type="submit" value="Submit" />
    </p>
  </form>

</body>
</html>